package com.hezhiqin.serviceclient.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2020-03-05 20:54
 */
@RestController
public class EchoServiceController {

    @Autowired
    EchoServiceClient echoServiceClint;

    @GetMapping("call/echo/{msg}")
    public  String echo(@PathVariable String msg){
        return echoServiceClint.echo(msg);
    }
}
